/* 
 * File:   CurrentStackMemento.cpp
 * Author: Gab'z
 * 
 * Created on 29 mai 2012, 10:56
 */

#include "CurrentStackMemento.h"
#include "../command/UndoableRedoableCommand.h"

namespace calculator {

    CurrentStackMemento::CurrentStackMemento(
            UndoableRedoableCommand* undoableRedoableCommand,
            const unsigned int stackIndex) :
    Memento(undoableRedoableCommand),
    _stackIndex(stackIndex) {
    }

    CurrentStackMemento::CurrentStackMemento(const CurrentStackMemento& memento) :
    Memento(memento._undoableRedoableCommand),
    _stackIndex(memento._stackIndex) {
    }

    CurrentStackMemento::~CurrentStackMemento() {
    }
}
